package view;

import javax.swing.JPanel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Color;
import javax.swing.SwingConstants;
import javax.swing.JButton;
import javax.swing.JSeparator;
import javax.swing.JComboBox;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.JTextField;

public class PaPesoModificar extends JPanel {
	private static final long serialVersionUID = 1L;
	private JTextField txtCostopeso;

	/**
	 * Create the panel.
	 */
	public PaPesoModificar() {
		
		JLabel lblModificarDePeso = new JLabel("Modificar  Peso");
		lblModificarDePeso.setHorizontalAlignment(SwingConstants.LEFT);
		lblModificarDePeso.setForeground(Color.BLUE);
		lblModificarDePeso.setFont(new Font("Sylfaen", Font.BOLD | Font.ITALIC, 18));
		
		JButton btnModificarPeso = new JButton("Modificar Peso");
		
		JButton button_1 = new JButton("Cancelar");
		
		JSeparator separator = new JSeparator();
		
		JComboBox comboBox = new JComboBox();
		comboBox.setToolTipText("Pesos");
		
		JLabel lblCostoPeso = new JLabel("Costo Peso");
		
		txtCostopeso = new JTextField();
		txtCostopeso.setEditable(false);
		txtCostopeso.setEnabled(false);
		txtCostopeso.setColumns(10);
		
		JButton btnTraer = new JButton("Traer");
		GroupLayout groupLayout = new GroupLayout(this);
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addComponent(lblModificarDePeso, GroupLayout.PREFERRED_SIZE, 140, GroupLayout.PREFERRED_SIZE)
							.addGap(4)
							.addComponent(btnModificarPeso, GroupLayout.PREFERRED_SIZE, 127, GroupLayout.PREFERRED_SIZE)
							.addGap(18)
							.addComponent(button_1, GroupLayout.PREFERRED_SIZE, 75, GroupLayout.PREFERRED_SIZE))
						.addComponent(separator, GroupLayout.PREFERRED_SIZE, 440, GroupLayout.PREFERRED_SIZE)
						.addGroup(groupLayout.createSequentialGroup()
							.addComponent(comboBox, GroupLayout.PREFERRED_SIZE, 204, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(btnTraer))
						.addGroup(groupLayout.createSequentialGroup()
							.addComponent(lblCostoPeso)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(txtCostopeso, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
					.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap()
					.addGap(1)
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addComponent(lblModificarDePeso, GroupLayout.PREFERRED_SIZE, 24, GroupLayout.PREFERRED_SIZE)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(1)
							.addComponent(btnModificarPeso))
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(1)
							.addComponent(button_1)))
					.addGap(8)
					.addComponent(separator, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
					.addGap(11)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(comboBox, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE)
						.addComponent(btnTraer))
					.addPreferredGap(ComponentPlacement.UNRELATED)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblCostoPeso)
						.addComponent(txtCostopeso, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addContainerGap(207, Short.MAX_VALUE))
		);
		setLayout(groupLayout);

	}

}
